package com.kuwou.workobject.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kuwou.workobject.mapper.SingerBasicInfoMapper;
import com.kuwou.workobject.pojo.entity.SingerBasicInfo;
import com.kuwou.workobject.pojo.vo.SingerBasicInfoVo;
import com.kuwou.workobject.service.SingerBasicInfoService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import java.util.List;

@RequiredArgsConstructor
@Service
public class SingerBasicInfoServiceImpl extends ServiceImpl<SingerBasicInfoMapper, SingerBasicInfo> implements SingerBasicInfoService {

    private final SingerBasicInfoMapper singerBasicInfoMapper;

    @Override
    public void truncateTable() {
        singerBasicInfoMapper.truncateTable();
    }

    @Override
    public List<SingerBasicInfoVo> getBasicInfo(String singerName) {
        return singerBasicInfoMapper.getBasicInfo(singerName);
    }
}
